package com.PengGoBook.main.db;

import android.net.Uri;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: S7
 * Date: 13-5-30
 * Time: 上午11:41
 * To change this template use File | Settings | File Templates.
 */
public class NewsColumn extends DatabaseColumn {

    public static final String TABLE_NAME			= 	"news";
    public static final String 	UPDATE_TIME			=	"update_time";
    public static final String JSON_PATH			=	"json_path";

    public static final Uri CONTENT_URI			=	Uri.parse("content://" + AUTHORITY + "/" + TABLE_NAME);
    private static final Map<String,String> mColumnMap = new HashMap<String,String>();
    static {

        mColumnMap.put(_ID, "integer primary key autoincrement");
        mColumnMap.put(UPDATE_TIME, "timestamp");
        mColumnMap.put(JSON_PATH, "text not null");
    }
    @Override
    public String getTableName() {
        // TODO Auto-generated method stub
        return TABLE_NAME;
    }

    @Override
    public Uri getTableContent() {
        // TODO Auto-generated method stub
        return CONTENT_URI;
    }

    @Override
    protected Map<String, String> getTableMap() {
        // TODO Auto-generated method stub
        return mColumnMap;
    }

}